package com.tutorial.painttest;

import java.util.Iterator;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.Set;

public class SystemProp {
	
	public static void printSysProp(){
		Properties prop = System.getProperties();
		int len = prop.size();
		Set<Entry<Object, Object>> entrySet = prop.entrySet();

		Iterator<Entry<Object, Object>> iter = entrySet.iterator();
		
		while(iter.hasNext()){
			Entry<Object, Object> next = iter.next();
			System.out.println(next.getKey()+" :"+next.getValue());
		}
	}
	
	public static void main(String[] args) {
		printSysProp();
	}
}
